\(\int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx\) [1001]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 30, antiderivative size = 5 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[Out]

x/c

Rubi [A] (verified)

Time = 0.00 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {27, 8} \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

Int[(d + e*x)^2/(c*d^2 + 2*c*d*e*x + c*e^2*x^2),x]

[Out]

x/c

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rubi steps \begin{align*} \text {integral}& = \int \frac {1}{c} \, dx \\ & = \frac {x}{c} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

Integrate[(d + e*x)^2/(c*d^2 + 2*c*d*e*x + c*e^2*x^2),x]

[Out]

x/c

Maple [A] (verified)

Time = 2.68 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.20

method result size
default \(\frac {x}{c}\) \(6\)
risch \(\frac {x}{c}\) \(6\)
norman \(\frac {\frac {e \,x^{2}}{c}+\frac {d x}{c}}{e x +d}\) \(24\)

[In]

int((e*x+d)^2/(c*e^2*x^2+2*c*d*e*x+c*d^2),x,method=_RETURNVERBOSE)

[Out]

x/c

Fricas [A] (verification not implemented)

none

Time = 0.37 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

integrate((e*x+d)^2/(c*e^2*x^2+2*c*d*e*x+c*d^2),x, algorithm="fricas")

[Out]

x/c

Sympy [A] (verification not implemented)

Time = 0.02 (sec) , antiderivative size = 2, normalized size of antiderivative = 0.40 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

integrate((e*x+d)**2/(c*e**2*x**2+2*c*d*e*x+c*d**2),x)

[Out]

x/c

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

integrate((e*x+d)^2/(c*e^2*x^2+2*c*d*e*x+c*d^2),x, algorithm="maxima")

[Out]

x/c

Giac [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

integrate((e*x+d)^2/(c*e^2*x^2+2*c*d*e*x+c*d^2),x, algorithm="giac")

[Out]

x/c

Mupad [B] (verification not implemented)

Time = 0.01 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {(d+e x)^2}{c d^2+2 c d e x+c e^2 x^2} \, dx=\frac {x}{c} \]

[In]

int((d + e*x)^2/(c*d^2 + c*e^2*x^2 + 2*c*d*e*x),x)

[Out]

x/c